<table class="table">
    <foreach item="p" name="phones">
        <tr>
            <td>
                {$p.name}
            </td>
            <td>
                {$p.phone}
            </td>
            <td>
                {$p.remark}
            </td>
            <td>
                <a href="javascript:;" data-pid="{$p.id}" class="editPhone">
                    <i class="icon-edit"></i>
                </a>
            </td>
        </tr>
    </foreach>
</table>
<script type="text/javascript">
    $(function () {
        $('a.editPhone').editPhone();
    });
</script>